import { View, Text,Image } from '@tarojs/components'
import { useState } from 'react'
import './index.scss'

export default function EmptyView (props) {
  const [empytTxt, setEmptyTxt] = useState(props.emptyTxt || '暂无记录')
  return (
    <View className='empty'>
      <View className="empty-img">
        <Image className="img" src="https://wanhuhealth.oss-cn-beijing.aliyuncs.com/wanhuhealth-small-program/wanhu-mini-community/zwbg.png" mode="aspectFit" />
      </View>
      <View className="empty-txt">{empytTxt}</View>
    </View>
  )
}